import request from '@/utils/request'

export default {
    getComplaintListPage(current,limit,complaintQuery){
        return request({
            url: `/proservice/pro-complaint/pageComplaintCondition/${current}/${limit}`,
            method: 'post',
            data:complaintQuery
        })
    },
    deleteComplaintById(id){
        return request({
            url: `/proservice/pro-complaint/${id}`,
            method: 'delete'
        })
    },
    addComplaint(proComplaint){
        return request({
            url: `/proservice/pro-complaint/addComplaint`,
            method: 'post',
            data: proComplaint
        })
    },
    getComplaintById(id){
        return request({
            url: `/proservice/pro-complaint/getComplaint/${id}`,
            method: 'get'
        })
    },
    updateComplaintInfo(proComplaint){
        return request({
            url: `/proservice/pro-complaint/updateComplaint`,
            method: 'post',
            data: proComplaint
        })
    }
}


